/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #444;
    margin-bottom: 20px;
}

/* 导航栏样式 */
.nav {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

.nav button:hover {
    background-color: #45a049;
}

.nav-link {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #333;
}

.nav-link.active {
    background-color: #4CAF50;
    color: white;
}

/* 详情模态框样式 */
.details-content {
    margin: 20px 0;
}

.details-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.student-list {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.student-list ul {
    list-style: none;
    padding: 0;
}

.student-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.student-list li:last-child {
    border-bottom: none;
}

/* 维修申请相关样式 */
.filter-section {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.filter-section select,
.filter-section input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.status-pending {
    background-color: #FFC107;
    color: #333;
}

.status-processing {
    background-color: #2196F3;
    color: white;
}

.status-completed {
    background-color: #4CAF50;
    color: white;
}

.status-rejected {
    background-color: #F44336;
    color: white;
}

.process-btn {
    background-color: #FF9800;
    color: white;
}

.process-btn:hover {
    background-color: #F57C00;
}

/* 表单文本域样式 */
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 按钮样式 */
.action-btn {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-btn {
    background-color: #2196F3;
    color: white;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.edit-btn:hover {
    background-color: #1976D2;
}

.delete-btn:hover {
    background-color: #D32F2F;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 50%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-buttons {
    text-align: right;
    margin-top: 20px;
}

.form-buttons button {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-buttons button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}

.form-buttons button[type="button"] {
    background-color: #777;
    color: white;
}

.form-buttons button:hover {
    opacity: 0.9;
}